﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Studio77.GuessTheWordsWin8.Models
{
    public class StageItemModel : INotifyPropertyChanged
    {
        private int stageIndex;
        public int StageIndex
        {
            get
            {
                return stageIndex;
            }
            set
            {
                if (value != stageIndex)
                {
                    stageIndex = value;
                    OnPropertyChanged("StageIndex");
                }
            }
        }

        private string completeCount;
        public string CompleteCount
        {
            get
            {
                return completeCount;
            }
            set
            {
                if (value != completeCount)
                {
                    completeCount = value;
                    OnPropertyChanged("CompleteCount");
                }
            }
        }

        private bool isLocked;
        public bool IsLocked
        {
            get
            {
                return isLocked;
            }
            set
            {
                if (value != isLocked)
                {
                    isLocked = value;
                    OnPropertyChanged("IsLocked");
                }
            }
        }


        private void OnPropertyChanged(string name)
        {
            PropertyChangedEventHandler temp = PropertyChanged;
            if (temp != null)
            {
                temp(this, new PropertyChangedEventArgs(name));
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;

    }
}
